<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<sx:head/>
<style type="text/css">
* {
	padding: 0px;
	margin: 0px;
}

#all1 {
	width: 100%;
	height: 570px;
}


#mod1 {
	width: 100%;
	height: 550px;
}

#mod-top1 {
	width: 100%;
	height: 520px;
}
#mod-top1 table {
	border: 2px solid #42a0ff;
	margin-top:5px;
	margin-left:5px; 
}
#mod-top1 table th {
	background-color: #cee7ff;
}
#mod-top1 table th, #mod-top1 table td {
	width: 150px;
	border: 1px solid #a2d0ff;
	text-align: center;
}

#mod-bottom1 {
    margin-left:10px;
	width: 80%;
	height: 30px;
}

#go1 {
	float: left;
	margin-top:30px;
}
#size1{
  margin-top:30px;
  width:200px;
  float: left;
}
#mod-bottom-a1{
     float: left;
     margin-top:30px;
     width:470px;
}
</style>
</head>

<body>
	<div id="all1">
		<div id="mod1">
			<div id="mod-top1">
				<table border="1" cellpadding="5" cellspacing="0">
					<tr>
					    <th> </th>
						<th>文件名称</th>
						<th>文件路径</th>
						<th>类型</th>
						<th>所有者</th>
						<th>创建日期</th>
						<th>操作</th>
					</tr>
					
					<s:iterator value="%{#session.findFileList}">
						<tr>
						   <td><img width="20px" height="20px" src='<s:property value="%{filetypeinfo.filetypeimage}"/>'/></td>
							
							<td><s:property value="%{filename}" /></td>
							<td><s:property value="%{filepath}" /></td>
							<td><s:property value="%{filetypeinfo.filetypename}" /></td>
							<td><s:property value="%{userinfo.username}" /></td>
							<td><s:property value="%{createdate}" /></td>
							<%-- <td><sx:a href="/OAProject/file/file_toRecycleBin?fileid=%{fileid}" targets="mod-right" onclick="return confirm('该操作会将文件放入回收箱中，不会彻底删除，是否确定进行此操作？')">删除</sx:a>&nbsp;&nbsp;&nbsp; --%>
							
							<%-- <s:a herf="/OA/DoFindFile?type=update&accessoryid=%{a.accessoryid}">修改</s:a>&nbsp;&nbsp;&nbsp;<s:a href="/OAProject/file/acc_downLoad?downLoad">下载</s:a>--%>
				            <td><sx:a href="/OAProject/file/tree_findChild?fileid=%{fileid}" targets="mod-right">打开</sx:a></td>
							 
						</tr>
					</s:iterator>
				</table>
			</div>
			<%-- <div id="mod-bottom">
			    <form id="size" action="/OA/DoFindFile" method="post">每页显示
			    
			    <select name="pagesize">
			      <option value="5" 
			        <c:if test="${p.pageSize==5}">selected="selected"</c:if>
			      >5</option>
			      <option value="10" 
			        <c:if test="${p.pageSize==10}">selected="selected"</c:if>
			      >10</option>
			    </select>条
			    <input type="submit" value="确定" style="width:50px;">
			    </form>
			    <div id="mod-bottom-a">
				&nbsp;&nbsp;&nbsp;&nbsp;<a id="firstPage" href="/OA/DoFindFile?now=1">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="/OA/DoFindFile?now=${p.currentPage-1}">上一页</a>
				&nbsp;&nbsp;&nbsp;&nbsp; 当前第${p.currentPage}页
				，共${p.totalPage}页 &nbsp;&nbsp;&nbsp;&nbsp; <a
					href="/OA/DoFindFile?now=${p.currentPage+1}">下一页</a>
				&nbsp;&nbsp;&nbsp;&nbsp;<a href="/OA/DoFindFile?now=${p.totalPage}">末页
				</a>
				</div>
				<form action="/OA/DoFindFile" method="post" id="go">
					<input type="hidden" name="type" value="find"> <input
						style="width:50px;" type="text" name="now"
						value="${p.currentPage}" /> <input type="submit" value="go">
				</form>
				
			</div> --%>
		</div>
	</div>
</body>
</html>
